home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11893 < prev    next >
Encoding:
Text File  |  1996-08-05  |  748 b   |  33 lines

  1. Path: pop.gnn.com!JBringolf
  2. From: John Bringolf <JBringolf@gnn.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Help BTree Delete
  5. Date: Wed, 27 Mar 1996 07:14:37
  6. Organization: GNN
  7. Message-ID: <4jbb5q$rpo@news-e2c.gnn.com>
  8. NNTP-Posting-Host: www-34-5.gnn.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset="us-ascii"
  11. X-GNN-NewsServer-Posting-Date: 27 Mar 1996 12:09:30 GMT
  12. X-Mailer: GNNmessenger 1.2
  13.  
  14. Does anyone have examples of a delete function for binary trees?
  15.  
  16. struct Rec{
  17.   char Data[30];
  18.   struct Rec *Left;
  19.   struct Rec *Right;
  20.   } MyRec;
  21.  
  22. Is is best to...
  23.  
  24. Pass Tree and Item
  25.    (Ex: void Delete(struct Rec *MyRec, char DataToDelete[30]) )
  26. -or-
  27.  
  28. Use a find/search and pass a pointer tot he delete ???
  29.  
  30. Thanks JB
  31. John Bringolf JBringolf@gnn.com
  32.  
  33.